package com.ktkj.init.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ktkj.init.dto.UpdatePasswordForm;
import com.ktkj.init.dto.UserInfoCondition;
import com.ktkj.init.dto.UserInfoForm;
import com.ktkj.init.entity.UserInfo;
import com.ktkj.init.vo.QueryResult;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author ktkj
 * @since 2021-12-31
 */
public interface UserInfoService extends IService<UserInfo> {

    /**
     * 复合查询
     *
     * @param condition the condition
     * @return the query result
     * @author :yanlixiong
     * @date :2020-04-14 17:53:10
     */
    QueryResult<UserInfo> page(UserInfoCondition condition);

    /**
     * 保存(增加/修改)
     *
     * @param form the form
     * @return the dict
     * @author :yanlixiong
     * @date :2020-04-14 17:53:10
     */
    UserInfo saveOrUpdate(UserInfoForm form);

    void updatePassword(UpdatePasswordForm form);

    UserInfo getByUserName(String userName);

    Long getByUserId();
}
